package myJs

import org.scalajs.dom.Element

import scala.scalajs.js.annotation.{JSExport, JSExportTopLevel}
import myJs.myPkg.jquery._

/**
 * Created by yz on 2019/4/25
 */
@JSExportTopLevel("App")
object App {

  @JSExport("init")
  def init = {
    registerEvent
    $.ajaxSetup(JQueryAjaxSettings.cache(false))

    val shareTitle = "exoRBase2.0"
    val beforeTitle = $("#shareTitle").text()
    $("#shareTitle").text(s"${beforeTitle}-${shareTitle}")

  }

  def registerEvent = {

  }

}
